package summative;

import java.awt.Dimension;
import javax.swing.JFrame;

public class MainFrame extends JFrame
{
	public MainFrame()
	{
		super();
		setPreferredSize(new Dimension(1000, 1000));
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.pack();
		
		ViewList viewList = new ViewList();
		
		Menu menu = new Menu();
		setJMenuBar(menu);

		MainPanel panel = new MainPanel(viewList, menu);
		add(panel);
		
		viewList.addView(menu);
		
		setVisible(true);
	}
	public static void main(String[] args)
	{
		MainFrame frame = new MainFrame();
	}

}
